package com.itheima.health.service;

import com.itheima.health.pojo.Member;

/**
 * @author zhengjd
 * @date 2020/4/8 11:09
 */

public interface MemberService {

    /**
     * 查询用户是否为会员(不是则自动注册为会员)
     * @param telephone
     * @return
     */
    Member findByTelephone(String telephone);

    /**
     * 注册为会员
     * @param member
     */
    void add(Member member);
}
